<?php
include("include/config.inc.php");
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>分类 - 网演中国粤西平台</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=9,Chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link rel="stylesheet" type="text/css" href="css/public.css">
<link rel="stylesheet" type="text/css" href="css/category.css">
<script type="text/javascript" src="js/clientwidth.js"></script>
</head>
<body>
<div id="categoryall">
	<div class="categoryad"><a href="#"><img src="images/slide/slide_01.png" style="height:240px;"></a></div>
	<div class="search">
	<form action="search.php" method="post">
		<div class="search-input"><input name="keyword" type="text" id="keyword" class="input-text"></div>
		<div class="search-submit"><input name="s" type="submit" id="s" value="搜索" class="input-submit"></div>		
	</form>
	</div>
	<div class="category-div">			
		<ul>
<?php
$result = $db->query("select gc_id,gc_name FROM ".tableprefix."goods_class where flag='T' ORDER BY gc_sort ASC,gc_id ASC LIMIT 0,50");
while($row = $db->fetch_array($result))
{
?>
			<li><a href="list.php?cid=<?php echo $row["gc_id"];?>"><img src="images/catimg_<?php echo $row["gc_id"];?>.jpg" imgsrc="images/catimg_<?php echo $row["gc_id"];?>.jpg"><span><?php echo $row["gc_name"];?></span></a></li>
<?php
}
?>
		</ul>
	</div>
</div>

<footer id="bar-fixed">
	<a href="index.php" class="tab-item"><i class="icon-tabbar bar-home"></i>首页</a>
	<a href="category.php" class="tab-item active"><i class="icon-tabbar bar-message2"></i>分类</a>
	<a href="publish/" class="tab-item"><i class="icon-tabbar bar-publish"></i>发布</a>	
	<a href="user/" class="tab-item"><i class="icon-tabbar bar-user"></i>我</a>
</footer>
<script>
if (document.body.clientWidth > 640) {
	$('body').css({
		width: 640,
		margin: '0 auto',
	});
}
</script>
</body>
</html>